define([], function () {	
    function ContinuousPageViewLayout() {
        this.createPDFPageView = function(callback) {
            if  (typeof callback != "function") return;
            var _self = this;
            angular.forEach(this.pdfDoc.pdfPages, function(page, key) {             
                _self.scrollApi.getContentPane().append(callback(page));               
            });
        };

        this.gotoPage = function(pageIndex) {
            var pageElem = this.scrollApi.getContentPane().children("[pageIndex = '" + pageIndex + "']");
            //防止多次调用onScroll
            this.unBindScroll();
            this.scrollApi.scrollToElement(pageElem);
            this.bindScroll();
            this.scroll();   
        };
    }
    
    return ContinuousPageViewLayout;     	       	
	
});